﻿using System;
using System.Web.UI.WebControls;
using masterview.Code;

namespace masterview
{
    public partial class WebForm3 : System.Web.UI.Page
    {
        public ServerSideMessage ssm = ServerSideMessage.GetInstance();

        protected void Page_Load(object sender, EventArgs e)
        {
            ssm.Message = "Please select service and database.";
            ssm.Title = "Test";
            ssm.NotifyType = ServerSideMessage.MessageType.Error;
            ssm.IsActive = true;
        }

        protected void OnDataChange()
        {
            GridView2.DataBind();
        }

        protected void OnDataChange(object sender, DetailsViewDeletedEventArgs e)
        {
            OnDataChange();
        }

        protected void OnDataChange(object sender, DetailsViewInsertedEventArgs e)
        {
            OnDataChange();
        }

        protected void OnDataChange(object sender, DetailsViewUpdatedEventArgs e)
        {
            OnDataChange();
        }
    }
}